package com.example.springboot.Lib;

import lombok.Data;

@Data
public class ResponseEntity {
    private Integer code;
    private String msg;
    private Object data;

    public ResponseEntity(Integer code, String msg, Object data){
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public static ResponseEntity ResponseApi(Integer code, String msg, Object data){
        return new ResponseEntity(code, msg, data);
    }
}
